package com.meilai.project.entity.personnel.org;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.meilai.project.core.bean.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDate;

@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("roster_work_experience")
@ApiModel(value= "花名册-工作经验")
public class RosterWorkExperience extends SuperEntity {
    @ApiModelProperty(value = "花名册id", example = "1")
    private Long pid;
    @ApiModelProperty(value = "开始日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate start_time;
    @ApiModelProperty(value = "结束日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate end_time;
    @ApiModelProperty(value = "公司")
    private String company;
    @ApiModelProperty(value = "职位")
    private String job;
    @ApiModelProperty(value = "离职原因")
    private String leave_reason;
}


